package com.android.powerbankpad.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ChildBean implements Parcelable {

    public static final Creator<ChildBean> CREATOR = new Creator<ChildBean>() {
        @Override
        public ChildBean createFromParcel(Parcel in) {
            return new ChildBean(in);
        }

        @Override
        public ChildBean[] newArray(int size) {
            return new ChildBean[size];
        }
    };
    public String type;
    public String time;
    public String file;

    protected ChildBean(Parcel in) {
        type = in.readString();
        time = in.readString();
        file = in.readString();
    }

    public ChildBean(String type, String time, String file) {
        this.type = type;
        this.time = time;
        this.file = file;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(type);
        parcel.writeString(time);
        parcel.writeString(file);

    }

    @Override
    public String toString() {
        return "{" +
                "type='" + type + '\'' +
                ", time='" + time + '\'' +
                ", file='" + file + '\'' +
                '}';
    }
}
